home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / dviware / dvidoc / dvidoc.patch-sun2 < prev    next >
Text File  |  1994-04-24  |  5KB  |  191 lines

  1. These are the changes made by Paul Dubois to get C dvidoc running here on
  2. Sun-2 OS 3.4. I don't know if he changed more than is necessary.
  3.  
  4.     Bruce Langdon  L-472                langdon@lll-lcc.llnl.gov
  5.     Physics Department                  14363%f@nmfecc.arpa
  6.     Lawrence Livermore National Laboratory       
  7.     Livermore, CA 94550                 (415) 422-5444
  8. UUCP: ..{qantel,ucdavis,pyramid,harvard,topaz}!lll-lcc!langdon
  9. ------------------------------cut here------------------------------
  10. *** dvidoc.c.orig    Wed Mar  9 08:26:46 1988
  11. --- dvidoc.c    Thu Apr 14 15:54:22 1988
  12. ***************
  13. *** 416,423 ****
  14.    void
  15.   opentfmfile()
  16.   {
  17. !     if (testaccess(4, 3))
  18. !         Resetx(tfmfile, realnameoffile.A);
  19.       else {
  20.           (void)fprintf(errfile.fp, "TFM file not found\n"), Putl(errfile, 1);
  21.           longjmp(J[0].jb, 30);
  22. --- 416,433 ----
  23.    void
  24.   opentfmfile()
  25.   {
  26. !         char rf[namelength];
  27. !     char *realone;
  28. !     integer i;
  29. !     if (testaccess(4, 3)) {
  30. !            realone = realnameoffile.A;
  31. !                for(i=0; i < namelength -1; i++) {
  32. !          rf[i]= realone[i];
  33. !          if(rf[i] == ' ' || rf[i] == '\0') break;
  34. !          }
  35. !            rf[i] = '\0';
  36. !         Resetx(tfmfile,rf);
  37. !           }
  38.       else {
  39.           (void)fprintf(errfile.fp, "TFM file not found\n"), Putl(errfile, 1);
  40.           longjmp(J[0].jb, 30);
  41.  
  42. -------------------------------------------------------------------------
  43. *** dvityext.c.orig    Wed Mar  9 08:26:36 1988
  44. --- dvityext.c    Thu Apr 14 14:42:23 1988
  45. ***************
  46. *** 260,266 ****
  47.       }
  48.       /* now append curname to realname... */
  49.       p = curname;
  50. !     while (*p != ' ') {
  51.       if (realname >= &(realnameoffile[namelength-1])) {
  52.           fprintf(stderr,"! Full file name is too long\n");
  53.           break;
  54. --- 260,266 ----
  55.       }
  56.       /* now append curname to realname... */
  57.       p = curname;
  58. !     while (*p != ' ' && *p != '\0') {
  59.       if (realname >= &(realnameoffile[namelength-1])) {
  60.           fprintf(stderr,"! Full file name is too long\n");
  61.           break;
  62. ***************
  63. *** 269,271 ****
  64. --- 269,272 ----
  65.       }
  66.       *realname = '\0';
  67.   }
  68. +  
  69.  
  70. -------------------------------------------------------------------------
  71. *** texpaths.h.orig    Wed Mar  9 08:26:39 1988
  72. --- texpaths.h    Wed Mar  9 10:16:00 1988
  73. ***************
  74. *** 8,22 ****
  75.   
  76.   #define MAXINPATHCHARS  700    /* maximum number of chars in an input path */
  77.   
  78. ! #define defaultinputpath  ".:/usr/lib/tex/macros"
  79.       /* this should always start with "." */
  80.   
  81.   #define MAXOTHPATHCHARS 100     /* other paths should be much shorter */
  82.   
  83. ! #define defaultfontpath   "/usr/lib/tex/fonts"
  84.       /* it is probably best not to include "." here to prevent confusion
  85.          by spooled device drivers that think they know where the fonts
  86.          really are */
  87. ! #define defaultformatpath ".:/usr/lib/tex/macros"
  88. ! #define defaultpoolpath   ".:/usr/lib/tex"
  89. --- 8,21 ----
  90.   
  91.   #define MAXINPATHCHARS  700    /* maximum number of chars in an input path */
  92.   
  93. ! #define defaultinputpath  ".:/usr/tex/inputs"
  94.       /* this should always start with "." */
  95.   
  96.   #define MAXOTHPATHCHARS 100     /* other paths should be much shorter */
  97.   
  98. ! #define defaultfontpath   "/usr/tex/fonts"
  99.       /* it is probably best not to include "." here to prevent confusion
  100.          by spooled device drivers that think they know where the fonts
  101.          really are */
  102. ! #define defaultformatpath ".:/usr/tex/formats"
  103. ! #define defaultpoolpath   ".:/usr/tex"
  104.  
  105. -------------------------------------------------------------------------
  106. *** Makefile.orig    Wed Mar  9 08:26:22 1988
  107. --- Makefile    Thu Apr 14 15:54:00 1988
  108. ***************
  109. *** 4,24 ****
  110.   
  111.   CFLAGS=-g
  112.   PFLAGS=-g
  113. ! LDFLAGS=-g
  114.   
  115.   .SUFFIXES:
  116. ! .SUFFIXES: .web .p .o .dvi .pl .tfm
  117.   
  118.   all:    dvidoc doc.tfm dvidoc.dvi
  119.   
  120. - .web.p:
  121. -     tangle $<
  122. -     pxp -O -f $*.p > tmp
  123. -     mv tmp $*.p
  124. - .p.o:
  125. -     $(PC) -c $(PFLAGS) $*.p
  126.   .web.dvi:
  127.       weave $<
  128.       tex $*.tex
  129. --- 4,16 ----
  130.   
  131.   CFLAGS=-g
  132.   PFLAGS=-g
  133. ! LDFLAGS=-g -lm
  134.   
  135.   .SUFFIXES:
  136. ! .SUFFIXES:  .dvi .pl .tfm
  137.   
  138.   all:    dvidoc doc.tfm dvidoc.dvi
  139.   
  140.   .web.dvi:
  141.       weave $<
  142.       tex $*.tex
  143. ***************
  144. *** 27,41 ****
  145.   .pl.tfm:
  146.       pltotf $< $*.tfm
  147.   
  148. ! dvidoc.p:    dvidoc.web
  149. ! dvidoc.o:    dvidoc.p
  150. ! dvityext.o:    dvityext.c
  151.       $(CC) -c $(CFLAGS) dvityext.c
  152.   dvidoc: dvidoc.o dvityext.o
  153. !     $(PC) -o $@ $(LDFLAGS) dvidoc.o dvityext.o
  154.   
  155.   install: all
  156.       install -m 644 doc.tfm $(LIB)
  157. --- 19,30 ----
  158.   .pl.tfm:
  159.       pltotf $< $*.tfm
  160.   
  161. ! dvityext.o:    dvityext.c texpaths.h
  162.       $(CC) -c $(CFLAGS) dvityext.c
  163. ! dvidoc.o:    dvidoc.c 
  164. !     $(CC) -c $(CFLAGS) -DREADONLY dvidoc.c
  165.   dvidoc: dvidoc.o dvityext.o
  166. !     $(CC) -o $@  dvidoc.o dvityext.o $(LDFLAGS)
  167.   
  168.   install: all
  169.       install -m 644 doc.tfm $(LIB)
  170. ***************
  171. *** 43,47 ****
  172.       install -m 644 -c docmac.tex $(MACROS)
  173.   
  174.   clean:
  175. !     -rm -f *.o dvidoc.p dvidoc dvidoc.log dvidoc.tex dvidoc.pool \
  176.       CONTENTS.tex dvidoc.dvi doc.tfm
  177. --- 32,38 ----
  178.       install -m 644 -c docmac.tex $(MACROS)
  179.   
  180.   clean:
  181. !     -rm -f *.o dvidoc dvidoc.tex dvidoc.pool \
  182.       CONTENTS.tex dvidoc.dvi doc.tfm
  183.